<div ng-controller="ChengyunDetailCtrl as vm">
  <h1 class="page-title">用户资料</h1>
  <div class="btn-toolbar">
    <button class="btn btn-primary" ng-show="vm.user.approvalStatus!=2" ng-click="vm.verify(vm.user.id, true)"><i class="icon-ok"></i> 审核通过</button>
    <button class="btn btn-danger" ng-show="vm.user.approvalStatus!=2" ng-click="vm.verify(vm.user.id, false)"><i class="icon-remove"></i> 审核不通过</button>
    <button class="btn btn-inverse" ng-show="vm.user.valid && vm.userRole!='revenuer'" ng-click="vm.addBlack(vm.user.id)"><i class="icon-ban-circle"></i> 加入黑名单</button>
    <button class="btn btn-inverse" ng-show="!vm.user.valid"  ng-click="vm.cancelBlack(vm.user.id)"><i class="icon-ban-circle"></i>取消黑名单</button>
    <button class="btn btn-primary" ng-click="vm.viewDrivers(vm.user.id)">查看司机</button>
    <button class="btn btn-primary" ng-click="vm.viewCars(vm.user.id)">查看车辆</button>
    <div class="btn-group">
    </div>
  </div>
  <div class="well" >
    <p class="text-warning" ng-show="false">{{vm.msg}}</p>
    <form class="form-horizontal">
      <div id="legend" class="">
        <legend class="">用户信息</legend>
      </div>
      <fieldset>
        <div class="span6">
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">会员号</label>
            <div class="controls">
              <input type="text" readonly class="input-xlarge" ng-model="vm.user.user.memberId">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">身份证</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.idCardNumber">
              <p class="help-block"></p>
            </div>
          </div>
            <div class="control-group">
                <!-- Text input-->
                <label class="control-label" for="input01">身份证地址</label>
                <div class="controls">
                    <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.idCardAddress">
                    <p class="help-block"></p>
                </div>
            </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">纳税人识别号</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.taxerId">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">开户银行</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.bankName">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">支行信息</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.bankAddress">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">银行帐号</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.bankId">
              <p class="help-block"></p>
            </div>
          </div>
          
        </div>
        <div class="span6">
          <div class="control-group">
            <label class="control-label" for="input01">联系人</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.contact.name">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">联系电话</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.contact.telephone">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">手机</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.contact.mobile">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">电子邮箱</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge" ng-model="vm.user.contact.email">
              <p class="help-block"></p>
            </div>
          </div>
          <div class="control-group">
            <!-- Text input-->
            <label class="control-label" for="input01">备用1</label>
            <div class="controls">
              <input type="text" placeholder="" class="input-xlarge">
              <p class="help-block"></p>
            </div>
          </div>
        </div>
      </fieldset>
      <fieldset>
        <div id="legend" class="">
            <legend class="">已上传的资料</legend>
        </div>
          <div class="control-group" ng-show="vm.user.idCardNumberAttachment">

              <!-- Text input-->
              <label class="control-label">身份证资料</label>
              <div class="controls">
                  <a id="idImagelic" target="_blank" ng-href="/api/{{vm.user.idCardNumberAttachment}}">查看附件</a>
                  <p class="help-block"></p>
              </div>
          </div>
    </fieldset>
    </form>
    
  </div>
</div>